package com.ruoyi.generator.service.impl;

import com.ruoyi.generator.domain.FromBuildRuleConfig;
import com.ruoyi.generator.mapper.FromBuildRuleConfigMapper;
import com.ruoyi.generator.service.IFromBuildRuleConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 单设计_正则校验规则配置Service业务层处理
 *
 * @author XL
 * @date 2022-08-05 12:18:44
 */
@Service
public class FromBuildRuleConfigServiceImpl implements IFromBuildRuleConfigService
{
    @Autowired
    private FromBuildRuleConfigMapper fromBuildRuleConfigMapper;

    /**
     * 查询单设计_正则校验规则配置
     *
     * @param id 单设计_正则校验规则配置ID
     * @return 单设计_正则校验规则配置
     */
    @Override
    public FromBuildRuleConfig selectFromBuildRuleConfigById(Long id)
    {
        return fromBuildRuleConfigMapper.selectFromBuildRuleConfigById(id);
    }

    /**
     * 查询单设计_正则校验规则配置列表
     *
     * @param fromBuildRuleConfig 单设计_正则校验规则配置
     * @return 单设计_正则校验规则配置
     */
    @Override
    public List<FromBuildRuleConfig> selectFromBuildRuleConfigList(FromBuildRuleConfig fromBuildRuleConfig)
    {
        return fromBuildRuleConfigMapper.selectFromBuildRuleConfigList(fromBuildRuleConfig);
    }

    /**
     * 新增单设计_正则校验规则配置
     *
     * @param fromBuildRuleConfig 单设计_正则校验规则配置
     * @return 结果
     */
    @Override
    public int insertFromBuildRuleConfig(FromBuildRuleConfig fromBuildRuleConfig)
    {
        return fromBuildRuleConfigMapper.insertFromBuildRuleConfig(fromBuildRuleConfig);
    }

    /**
     * 修改单设计_正则校验规则配置
     *
     * @param fromBuildRuleConfig 单设计_正则校验规则配置
     * @return 结果
     */
    @Override
    public int updateFromBuildRuleConfig(FromBuildRuleConfig fromBuildRuleConfig)
    {
        return fromBuildRuleConfigMapper.updateFromBuildRuleConfig(fromBuildRuleConfig);
    }

    /**
     * 批量删除单设计_正则校验规则配置
     *
     * @param ids 需要删除的单设计_正则校验规则配置ID
     * @return 结果
     */
    @Override
    public int deleteFromBuildRuleConfigByIds(Long[] ids)
    {
        return fromBuildRuleConfigMapper.deleteFromBuildRuleConfigByIds(ids);
    }

    /**
     * 删除单设计_正则校验规则配置信息
     *
     * @param id 单设计_正则校验规则配置ID
     * @return 结果
     */
    @Override
    public int deleteFromBuildRuleConfigById(Long id)
    {
        return fromBuildRuleConfigMapper.deleteFromBuildRuleConfigById(id);
    }
}
